//
//  HBTextView.m
//  Pods-SLTextView_Example
//
//  Created by Touker on 2018/1/12.
//

#import "HBTextView.h"
@interface HBTextView()
@property (weak, nonatomic) IBOutlet UITextView *contentView;
@end
@implementation HBTextView

+ (instancetype)createTextViewWithRect:(CGRect)rect
{
    HBTextView * textView;
    NSBundle * xibBundle =[NSBundle bundleForClass:[self class]];
    for (id nibView in [xibBundle loadNibNamed:NSStringFromClass(self) owner:self options:nil]) {
        if ([nibView isKindOfClass:[self class]]) {
            textView =nibView;
            break;
        }
    }
    textView.frame =rect;
    return textView;
}
@end
